﻿using SuperMicroWave.Common;
using System;
using System.Globalization;
using System.Windows.Data;

namespace SuperMicroWave.Converters
{
    public class MethodConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool result = !(bool)value;
            string methodName = GlobalValue.sysParams.MethodName;
            if (methodName == "自动清洗")
                result = false;
            return result;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
